<?php


namespace app\model;


use app\model\common\CommonModel;

class dictionaryModel extends CommonModel
{
    protected $name = 'dictionary';
    public function type()
    {
        return $this->belongsTo(dictionaryTypeModel::class, 'type_id');
}

    public function categorys()
    {
        return $this->hasMany(categoryModel::class,'type_id');
}
}